<?php 
/* SVN FILE: $Id$ */
/* VoteOption Test cases generated on: 2009-05-30 23:05:01 : 1243741381*/
App::import('Model', 'VoteOption');

class VoteOptionTestCase extends CakeTestCase {
	var $VoteOption = null;
	var $fixtures = array('app.vote_option', 'app.vote');

	function startTest() {
		$this->VoteOption =& ClassRegistry::init('VoteOption');
	}

	function testVoteOptionInstance() {
		$this->assertTrue(is_a($this->VoteOption, 'VoteOption'));
	}

	function testVoteOptionFind() {
		$this->VoteOption->recursive = -1;
		$results = $this->VoteOption->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('VoteOption' => array(
			'id'  => 1,
			'option_name'  => 'Lorem ipsum dolor sit amet',
			'option_count'  => 1,
			'vote_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>